projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
667aec9
)
(Fset_buffer_multibyte): Error if buffer is multibyte.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 1 Feb 1999 11:17:41 +0000
(11:17 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 1 Feb 1999 11:17:41 +0000
(11:17 +0000)
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index 9d5fb51c25875be6b7af6ee90eab012e675fbe2b..0cd234303f68f339457b6d7e39794d20dcd8ba5a 100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-1735,6
+1735,9
@@
but the contents viewed as characters do change.")
{
Lisp_Object tail, markers;
+ if (current_buffer->base_buffer)
+ error ("Cannot do `set-buffer-multibyte' on an indirect buffer");
+
/* Do nothing if nothing actually changes. */
if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters))
return flag;